]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
network: Let NetworkManager figure out the best AP for the connection
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 23 Jan 2014 19:35:10 +0000 (14:35 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 23 Jan 2014 19:38:40 +0000 (14:38 -0500)
According to dcbw, this can be handled by NetworkManager now.

js/ui/status/network.js

index c3212cc3b9b1441c4a2dd8369a2e1fc019f555de..489d5335ab6c68eb791fe48b7ac124057dad7ef1 100644 (file)
@@ -733,16 +733,11 @@ const NMWirelessDialog = new Lang.Class({
 
     _connect: function() {
         let network = this._selectedNetwork;
-        let accessPoints = network.accessPoints;
         if (network.connections.length > 0) {
             let connection = network.connections[0];
-            for (let i = 0; i < accessPoints.length; i++) {
-                if (accessPoints[i].connection_valid(connection)) {
-                    this._client.activate_connection(connection, this._device, accessPoints[i].dbus_path, null);
-                    break;
-                }
-            }
+            this._client.activate_connection(connection, this._device, null, null);
         } else {
+            let accessPoints = network.accessPoints;
             if ((accessPoints[0]._secType == NMAccessPointSecurity.WPA2_ENT)
                 || (accessPoints[0]._secType == NMAccessPointSecurity.WPA_ENT)) {
                 // 802.1x-enabled APs require further configuration, so they're